<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Add Year Level</h6>
	<?php 
		$formAttrib = array('id' => 'addyearlevel', 'class' => 'admin-form');
		$levelNameAttrib = array('name' => 'level_name', 'value' => '', 'id' => 'levelname');
		echo form_open('post/add_year_level', $formAttrib);	
	?>
    
    <div class="input-block">
    <?php
		echo form_label('Level Name:', 'levelname');
		echo form_input($levelNameAttrib);
	?>
    </div>
	<div class="input-block">
		<table>
			<tbody class="tabular">
				<tr><td>Available Fees</td></tr>
			<?if(!empty($fee_cat)):?>
				<?foreach ($fee_cat as $key => $value):?>
				<?$title = $value->fee_cat_desc == '' ? 'No Description Available' : $value->fee_cat_desc;?>
				<tr><td title="<?=$title;?>"><input type="checkbox" name="year_level_fees[]" value="<?=$value->fee_cat_id;?>"> <?=$value->fee_cat_name;;?></td></tr>
				<?endforeach;?>
			<?else:?>
				<tr><td><div class="notice">Please Set fee category in the finance section</div></td><tr>
			<?endif;?>
			</tbody>
		</table>
	</div>
<? echo form_submit('add', 'Add'); ?>
<a href="<?php echo site_url('admin/level') ?>" class="btn">Back</a>	
</div>
</div>